﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %>

<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">

   <style>
       th {
       text-align:center;
       color:rebeccapurple;
       }
       td {
       text-align:center;
       color:green;
       width:120px;
       }
       table {
       background-color:pink;
       margin-left:150px;
       margin-top:150px;
       }
       button {
        margin-left:150px;
       margin-top:150px;
       }
   </style>
    <asp:Button Text="添加" runat="server" OnClick="Unnamed1_Click" />
<asp:GridView ID="GV1" runat="server" AutoGenerateColumns="false" OnRowCancelingEdit="GV1_RowCancelingEdit" OnRowDeleting="GV1_RowDeleting" OnRowEditing="GV1_RowEditing" OnRowUpdating="GV1_RowUpdating">
    <Columns>
        <asp:BoundField DataField="Id" ReadOnly="true" HeaderText="Id" />
        <asp:BoundField DataField="Title" HeaderText="Title" />
        <asp:BoundField DataField="Content" HeaderText="Content" />
        <asp:BoundField DataField="Author" HeaderText="Author" />
        <asp:CommandField ShowEditButton="true" ShowCancelButton="true" ShowDeleteButton="true" />
    </Columns>
</asp:GridView>

</asp:Content>

